package net.xdclass.onlinexdclass.mapper;

import net.xdclass.onlinexdclass.model.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {

    /**
     * 新增用户
     *
     * @param
     * @return
     */
    int save(User user);

    User findByPhone(@Param("phone") String phone);

    void updateUser(User user);

    User findByPhoneAndPwd(@Param("phone") String phone, @Param("pwd") String pwd);

    User getUserById(@Param("id") Integer id);
}
